package com.example.korimako;

import com.example.korimako.R;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
//import android.widget.EditText;
import android.widget.TextView;

public class MainActivity2 extends Activity {

//	@Override
//	public void finish() {
//		super.finish();	
//		
//	}
//	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main_activity2);
		
		TextView tv1 = (TextView)findViewById(R.id.TextView11);
		
		//get Bundle in the Intent
		Person person = (Person)this.getIntent().getSerializableExtra("Person");
		if(person == null){		
			tv1.setText("EEEEEEEEEEEEEEE");
		}else {
			tv1.setText("--------"+person.gender+","+person.height);
		}
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main_activity2, menu);
		return true;
	}

}
